#!/usr/local/bin/pl -g serql_welcome -L0 -G0 -T0 -s

% Needs SeRQL in the path 

:- dynamic
        user:file_search_path/2.
:- multifile
        user:file_search_path/2.

:- prolog_load_context(directory, Dir),
   atom_concat(Dir,'/SeRQL',SeRQLDir),
   asserta(user:file_search_path(serql, SeRQLDir)).

:- load_files([ serql(load)
              ],
              [ silent(true)
              ]).



% P2R code

:- use_module('p2r/p2r_entailment').

init :- 
	rdf_load('dump/toc.ttl').



% Handcrafted mappings

:- use_module('dic/dic_mapping').
:- use_module('tsv/tsv_mapping').
%:- use_module('toc/toc_mapping').

:- use_module(library('semweb/rdf_db')).
:- use_module(library('semweb/rdf_turtle')).


:- serql_server.

:- compile.


